const foo = {
  bar: 10,
  fn: function () {
    console.log(this)
    console.log(this.bar)
  }
}

let fn1 = foo.fn

fn1()
foo.fn()